﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using ProjectWebNhac.DAO;
using System.Data;

namespace ProjectWebNhac.BUS
{
    public class CasiTheloaiBus
    {
        public CasiTheloaiBus() { }
        Dataprovider dao = new Dataprovider();
        public bool ThemCasiTheLoai(int MaCasi, int MaTheLoai)
        {
            return dao.XuLySuKien("sp_Admin_ThemTheLoaiTheoMaCasi", CommandType.StoredProcedure,
                new object[] { "@MaTheLoai", MaTheLoai, "@MaCasi", MaCasi });
        }
        public bool XoaTheLoaiCaSiTheoMaCS(int MaCS)
        {
            return dao.XuLySuKien("sp_Admin_XoaTheLoaiTheoMaCaSi", CommandType.StoredProcedure,
                new object[] {"@MaCasi",MaCS });
        }
    }
}